using UnityEngine;

public class StarListItem : MonoBehaviour
{
    public Transform m_target_star;
    public Transform m_look_point;
    public TrailRenderer m_trail;
    public ESolarName m_solar_name;

    private void Start()
    {
        StarManager.m_Intance.RegisterStarItem(m_solar_name, this);
    }

    private void OnMouseDown()
    {
        if (m_solar_name == StarManager.m_Intance.m_curSolarName)
        {
            UIManager.m_Intance.OnClickButton(ESolarName.None);
        }
        else
            UIManager.m_Intance.OnClickButton(m_solar_name);
    }
}
